package com.hyt.it.ogt.ykcj.feign.kw;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.hyt.it.ogt.ykcj.feign.model.CandidateAnswersResultEntity;
import com.hyt.it.ogt.ykcj.feign.model.ResultEntity;
import com.hyt.loginfo.config.OAuth2FeignRequestConfig;

/**
 * description 远程调用获取考试信息类
 *
 * @author yaojian
 * @createTime 2021/12/06
 */
@FeignClient(value = "it-ogt-kz", fallback = ExamClientHystrix.class, configuration = OAuth2FeignRequestConfig.class)
public interface ExamClient {

    /**
     * 根据考试id获取考试信息
     *
     * @param examId
     * @return
     */
    @RequestMapping(value = "/examInfo/getExamInfo", method = RequestMethod.GET)
    ResultEntity getExamInfo(@RequestParam("examId") String examId);

    /**
     * 根据考试id获取考生的考试信息
     *
     * @param examId
     * @param ExamineeId
     * @return
     */
    @RequestMapping(value = "/api/cj/queryCandidateAnswers", method = RequestMethod.GET)
    CandidateAnswersResultEntity queryCandidateAnswers(@RequestParam("examId") String examId, @RequestParam("examCandidateId") String ExamineeId);



}
